import en from './locales/en.json'
import zh from './locales/zh.json'

export default defineI18nConfig(() => {
  // const config = useRuntimeConfig()
  return {
    legacy: false,
    locale: 'en',
    fallbackLocale: 'en',
    messages: {
      en,
      zh,
    },
    modifiers: {
      snakeCase: (str: string) => str.split(' ').join('-')
    },
    missingWarn: true,
    fallbackWarn: true,
    warnHtmlMessage: true,
    silentFallbackWarn: false,
    silentTranslationWarn: false
  }
})
